Optimal. Leaf size=41 \[ \frac {\log (a \cos (c+d x)+b \sin (c+d x))}{b d}-\frac {\log (\cos (c+d x))}{b d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 41, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.115, Rules used = {3102, 3475, 3133} \[ \frac {\log (a \cos (c+d x)+b \sin (c+d x))}{b d}-\frac {\log (\cos (c+d x))}{b d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3102
Rule 3133
Rule 3475
Rubi steps
\begin {align*} \int \frac {\sec (c+d x)}{a \cos (c+d x)+b \sin (c+d x)} \, dx &=\frac {\int \frac {b \cos (c+d x)-a \sin (c+d x)}{a \cos (c+d x)+b \sin (c+d x)} \, dx}{b}+\frac {\int \tan (c+d x) \, dx}{b}\\ &=-\frac {\log (\cos (c+d x))}{b d}+\frac {\log (a \cos (c+d x)+b \sin (c+d x))}{b d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.03, size = 18, normalized size = 0.44 \[ \frac {\log (a+b \tan (c+d x))}{b d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.75, size = 59, normalized size = 1.44 \[ \frac {\log \left (2 \, a b \cos \left (d x + c\right ) \sin \left (d x + c\right ) + {\left (a^{2} - b^{2}\right )} \cos \left (d x + c\right )^{2} + b^{2}\right ) - \log \left (\cos \left (d x + c\right )^{2}\right )}{2 \, b d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.97, size = 19, normalized size = 0.46 \[ \frac {\log \left ({\left | b \tan \left (d x + c\right ) + a \right |}\right )}{b d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.21, size = 19, normalized size = 0.46 \[ \frac {\ln \left (a +b \tan \left (d x +c \right )\right )}{d b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 2.22, size = 103, normalized size = 2.51 \[ \frac {\frac {\log \left (-a - \frac {2 \, b \sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + \frac {a \sin \left (d x + c\right )^{2}}{{\left (\cos \left (d x + c\right ) + 1\right )}^{2}}\right )}{b} - \frac {\log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} + 1\right )}{b} - \frac {\log \left (\frac {\sin \left (d x + c\right )}{\cos \left (d x + c\right ) + 1} - 1\right )}{b}}{d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 0.72, size = 62, normalized size = 1.51 \[ -\frac {2\,\mathrm {atanh}\left (\frac {b\,\left (b\,\cos \left (c+d\,x\right )-a\,\sin \left (c+d\,x\right )\right )}{2\,\cos \left (c+d\,x\right )\,a^2+\sin \left (c+d\,x\right )\,a\,b+\cos \left (c+d\,x\right )\,b^2}\right )}{b\,d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sec {\left (c + d x \right )}}{a \cos {\left (c + d x \right )} + b \sin {\left (c + d x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________